package com.cloudfun.campusshare.repo;

import com.cloudfun.campusshare.entity.DeviceMetaModeEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

/**
 * Created by Huqin on 2020/4/20
 */
public interface DeviceMetaModeRepo extends
        PagingAndSortingRepository<DeviceMetaModeEntity, String>,
        JpaSpecificationExecutor<DeviceMetaModeEntity> {

    List<DeviceMetaModeEntity> findAll();

    List<DeviceMetaModeEntity> findAllByDeviceType(String deviceType);

}
